package org.jxht.service.impl;

import org.jxht.dao.TeaCouDao;
import org.jxht.dto.TeaCouDto;
import org.jxht.service.TeaCouService;
import org.jxht.service.TeacherService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by huang on 2017/3/15 0015.
 */
@Service
public class TeaCouServiceImpl implements TeaCouService{

    @Resource
    TeaCouDao teaCouDao;

    public void insertTeaCouService(TeaCouDto dto) {
        teaCouDao.insertTeaCouDao(dto);
    }

    public List queryTeaCouService(TeaCouDto dto) {
        return teaCouDao.queryTeaCouDao(dto);
    }

    public TeaCouDto queryTeaCouServiceSingle(TeaCouDto dto) {
        return (TeaCouDto) teaCouDao.queryTeaCouDao(dto);
    }

    public void updataTeaCouService(TeaCouDto dto) {
        teaCouDao.queryTeaCouDao(dto);
    }

    public void deleteTeaCouService(TeaCouDto dto) {
        teaCouDao.queryTeaCouDao(dto);
    }
}
